package com.yj.ccs.abs.common.enums;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/4/9
 * Author     : Unbelievable9
 **/
public enum AssetListType {

    /**
     * 1 - 普通
     * 2 - 当期
     * 3 - 记录
     */
    NORMAL(1),
    CURRENT(2),
    RECORD(3);

    private Integer value;

    AssetListType(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public static AssetListType fromValue(Integer value) {
        for (AssetListType assetListType : AssetListType.values()) {
            if (assetListType.getValue().equals(value)) {
                return assetListType;
            }
        }

        return null;
    }
}
